import { Component } from 'react'
import { Link } from 'react-router-dom'
class Home extends Component {
    render() {
        return (
            <div>
                这是home页面
                {/* <Link to={
                    {
                        pathname: '/about',
                        query: {
                            id: 1243
                        }
                    }
                }>跳转进入about页面</Link> */}
                <button onClick={
                    () => {
                        this.props.history.push({
                            pathname: '/about/aaa',
                            query: {
                                id: 1243
                            }
                        })
                    }
                }>点击跳转进入about页面</button>
            </div>
        )
    }
}

export default Home